#!/bin/sh

touch log

for file in tests/*.tool
do
	scala -classpath bin tool.Main $file > $file.1
	scala -classpath bin tool.Main $file.1 > $file.2
	result=`diff $file.1 $file.2`
	if ["$result" -eq ""]; then
		echo "$file  => OK"
	else
		echo "$file => WRONG"
	fi
done;
